Skip to main content

Get a Single AI Agent by ID

Used to retrieve detailed information for a specific AI agent using its unique identifier (UUID).

API Endpoint

PropertyValue
Request MethodGET
Request URLhttps://api.seliseblocks.com/agents/query/{agent_id}

Request

Request Example

curl -X GET 'https://api.seliseblocks.com/agents/query/a1b2c3d4-e5f6-7890-abcd-ef1234567890?project_key=YOUR_PROJECT_KEY' \
-H 'accept: application/json'

Request Headers

FieldTypeRequiredDescription
acceptstringYesAccepted response format. Use application/json

Path Parameters

FieldTypeRequiredDescription
agent_idstringYesUUID of the AI Agent to retrieve.

Query Parameters

FieldTypeRequiredDescription
project_keystringNoProject key used to change context.

Response

Success Response (200 OK)

Returns an object containing the detailed agent information.

{
"agent": {
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"name": "Customer Support Agent",
"tags": ["support", "customer-service", "chatbot"],
"role": "assistant",
"description": "An AI agent specialized in handling customer support inquiries",
"logo_url": "https://example.com/logo.png",
"logo_id": "logo_123456",
"is_disabled": false,
"is_archived": false,
"widget_id": "widget_789",
"agent_type": "customer_support",
"languages": ["en-US", "de-DE"],
"organization_ids": ["org_123", "org_456"],
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z",
"llm_config": {
"Provider": "openai",
"ModelName": "gpt-4",
"Temperature": 0.7,
"MaxTokens": 2000
},
"widget": {
"Name": "Support Chat Widget",
"BrandColor": "#4F46E5",
"Greeting": "Welcome! How can I help you today?"
}
}
}

Response Fields

FieldTypeDescription
agentobjectComplete agent object with all configuration details.

Agent Object Fields

FieldTypeDescription
idstringUnique identifier of the agent.
namestringName of the agent.
tagsarrayArray of tags associated with the agent.
rolestringRole of the agent (e.g., assistant, specialist).
descriptionstringDescription of the agent's purpose and functionality.
logo_urlstringURL of the agent's logo image.
logo_idstringUnique identifier for the logo asset.
is_disabledbooleanWhether the agent is currently disabled.
is_archivedbooleanWhether the agent is archived.
widget_idstringIdentifier of the associated widget.
agent_typestringType of the agent (e.g., customer_support, sales).
languagesarrayArray of supported language codes.
organization_idsarrayArray of organization identifiers.
created_atstringISO 8601 timestamp of when the agent was created.
updated_atstringISO 8601 timestamp of the last update.
llm_configobjectLarge Language Model configuration settings.
widgetobjectWidget configuration details.
note

The response structure may include additional nested objects such as rag_config, guardrail, memory_config, and tool_ids depending on the agent's configuration.

Error Response (422 Unprocessable Entity)

Returns validation error details when the request parameters are invalid.

{
"detail": [
{
"loc": [
"path",
"agent_id"
],
"msg": "invalid UUID format",
"type": "type_error.uuid"
}
]
}

Error Response Fields

FieldTypeDescription
detailarrayArray of validation error objects.
locarrayLocation of the error in the request (e.g., path, query).
msgstringHuman-readable error message.
typestringError type identifier.

Error Codes

Status CodeDescriptionResponse Type
200Successful ResponseSuccess
404Agent Not FoundNot Found
422Validation Error - Invalid request parametersUnprocessable Entity